package com.wsjzzcbq.qianyuan.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wsjzzcbq.qianyuan.common.bean.PageBean;
import com.wsjzzcbq.qianyuan.common.bean.R;
import com.wsjzzcbq.qianyuan.sys.bean.SysRole;
import com.wsjzzcbq.qianyuan.sys.param.AddSysRoleParam;
import com.wsjzzcbq.qianyuan.sys.param.FindSysRoleListParam;

/**
 * RoleService
 *
 * @author wsjz
 * @date 2022/03/11
 */
public interface SysRoleService extends IService<SysRole> {

    R<PageBean<SysRole>> findList(FindSysRoleListParam param);

    R<?> findAllMenuList();

    R<?> addOrUpdateSysRole(AddSysRoleParam param);

    R<?> findSysRoleById(String id);

    R<?> deleteSysRoleById(String id);

    /**
     * 查询全部角色
     * @return
     */
    R<?> findRoles();
}
